package net.lab1024.sa.admin.module.business.flow.service;

import jakarta.validation.Valid;
import net.lab1024.sa.admin.module.business.flow.domain.form.FlwDeployQueryForm;
import net.lab1024.sa.admin.module.business.flow.domain.vo.FlwDeployProDefVO;
import net.lab1024.sa.admin.module.business.flow.domain.vo.FlwDeployVO;
import net.lab1024.sa.base.common.domain.PageResult;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

public interface FlwDeployService {
    /**
     * 分页查询
     * @return
     */

    PageResult<FlwDeployVO> queryPage(@Valid FlwDeployQueryForm queryForm);

    /**
     * 查询流程定义列表
     * @return
     */
    PageResult<FlwDeployProDefVO> listProcDef(@Valid FlwDeployQueryForm queryForm);

    /**
     * 根据ID获取流程图
     * @param id
     * @return
     */
    byte[] getProcessDiagram(String id);

    /**
     * 根据ID查询流程xml
     * @param id
     * @return
     */
    String queryFlowXml(String id);

    List<Map<String,Object>> getFlowDef(String id);
}
